#!/usr/bin/env python3
# -*- encoding: utf-8 -*-

__author__ = "Yunpeng Li <ypli.chn@outlook.com.com>"
import json
from EU.models import Region

def get_region():
    """
    获取景区基础信息
    :return:
    """
    region = Region.objects.all().first()
    return json.dumps({"introduction":region.introduction})

def get_weather():
    """
    获取景区当前天气
    :return:
    """
    region = Region.objects.all().first()
    return json.dumps(json.loads(region.weather))


def main():
    pass


if __name__ == '__main__':
    main()
